package com.gegong.imessage.dto;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TVmIMessageTask {


    public enum MsgType {
        TEXT(1, "纯文本"),
        IMG(2, "纯图片"),
        TEXT_IMG(3, "文本加图片"),
        METADATA(4, "metadata数据");
        private int code;
        private String name;

        public int getCode() {
            return code;
        }

        public String getName() {
            return name;
        }

        MsgType(int code, String name) {
            this.code = code;
            this.name = name;
        }
    }


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class FileConfig {

        private String user;  //scp账号
        private String passwd;  //scp密码

        private String down_url;
        private String upload_url;
        private String protocol = "scp";
    }

    private String task_id;
    private String task_cmd;
    private MsgType msg_type;
    private FileConfig file_addr;


}
